<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns:th="http://www.w3.org/1999/xhtml">

	<head>
		<meta charset="utf-8">
        <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>

        <title>医用CT成像实验</title>
		<link rel="stylesheet" href="static/css/common.css">

        <script type="text/javascript" src="static/js/jquery-1.8.0.min.js"></script>

    </head>

	<body>
		<div id="content" class="bt4">
			<div id="news" style="width:700px; margin:0 auto; padding-bottom:30px;">
				<div class="title" align="center" style="padding-top:40px; padding-bottom:30px; font-size:26px; font-weight:bold;">实验方法与步骤</div>
				<div class="pagenav">
					<div id="c" style="margin:0 auto;">

					</div>
				</div>
			</div>
		</div>
		<div style="height:20px;"></div>

	</body>

</html>

<script type="text/javascript">
    $.ajax({
        type: 'post',
        async: false,
        url: "/introduce-step/getAllData",
        success: function(reslut) {
            let html;
            if (reslut.msg === "OK") {
                let data = reslut.data;

                for (let i = data.length - 1; i >= 0; i--) {

                    if (data[i].lineType === 3) {
                        html = '<p align="left" style="text-indent:2em"><b>' + data[i].lineValue + '</b></p><br>';
                        $('#c').after(html);
                    } else if (data[i].lineType === 1) {
                        html = '<p align="left" style="text-indent: 2em">' + data[i].lineValue + '</p><br>';
                        $('#c').after(html);
                    } else if (data[i].lineType === 4) {
                        html = '<p align="center"><img src="' + data[i].lineValue + '"></p>';
                        $('#c').after(html);
                    } else if (data[i].lineType === 2) {
                        html = '<p align="center">' + data[i].lineValue + '</p><br>';
                        $('#c').after(html);
                    }
                }
            }
        }
    });
</script>